home *** CD-ROM | disk | FTP | other *** search
/ Delphi 5 for Professionals / DELPHI5.iso / AddOns / Components / RealTime Graphics ActiveX / DATA.3 / Examples / CPP / Ctwxdef.h next >
Encoding:
C/C++ Source or Header  |  1997-10-17  |  3.4 KB  |  119 lines

  1.  
  2. #ifndef CTWXDEF
  3. #define CTWXDEF
  4.  
  5. #include "QCWIN.H"
  6. #include "QCWRT.H"
  7.  
  8. #define ST_LINEPLOT 0
  9. #define ST_BARGRAPH 1
  10. #define ST_SCATTERPLOT 2
  11.  
  12. #define X_AXIS1 0
  13. #define Y_AXIS1 1
  14. #define X_AXIS2 2
  15. #define Y_AXIS2 3
  16.  
  17. #define AXES1 0
  18. #define AXES2 1
  19.  
  20. #define TITLE1 0
  21. #define TITLE2 1
  22. #define FOOTER 2 
  23.  
  24. #define NUMAXES 4
  25. #define NUMTITLES 3
  26.  
  27.  
  28. #define MAX_WCTX_TRACES 32
  29. #define MAX_WCTX_GROUPS 16
  30. #define MAX_WCTX_DATAPOINTS 1000000
  31. #define MAX_WCTX_AXISSTRINGS 32
  32. #define MAX_WCTX_DATACURSORS 32
  33. #define MAX_RTMETERX_NEEDLES 5
  34. #define MAX_RTBARX_BARS 32
  35. #define MAX_RTANNUNX_CELLS 32
  36. #define MAX_RTPIDX_BARS 3
  37. #define MAX_RTDATASETS 4
  38. #define MAX_RTCHANNELS 32
  39.  
  40.  
  41. #define MAX_WCTX_DEMO_TRACES     4
  42. #define MAX_WCTX_DEMO_DATAPOINTS  10
  43. #define MAX_WCTX_DEMO_GROUPS  4
  44.  
  45. #define MINLOGSCALEVALUE 1.0e-20
  46.  
  47. #define SIMPLE_XY_DATA_TYPE 0
  48. #define GROUP_DATA_TYPE     1
  49. #define PIECHART_DATA_TYPE  2 
  50.  
  51.  
  52. #define SCROLLING_LINE_GRAPH         0
  53. #define SWEEP_GRAPH                  1
  54. #define SCROLLING_BAR_GRAPH          2
  55. #define SCROLLING_STACKED_LINE_GRAPH 3
  56. #define SCROLLING_XY_GRAPH           4
  57. #define VARIABLE_SCROLLING_GRAPH     5
  58.  
  59.  
  60. #define SIMPLE_LEGEND 0
  61. #define GROUP_LEGEND  1
  62.  
  63. #define LEGEND_BLACKTEXT 0
  64. #define LEGEND_COLORTEXT 1
  65.  
  66. #define RTMETER_NEEDLE 0
  67. #define RTMETER_ARC 1
  68. #define RTMETER_PIE 2
  69.  
  70.  
  71. #define PRT_POSITIONONPAGE PRT_EXACT + 1
  72.  
  73. #define WCTX_MIN_SIZE 50
  74.  
  75. #define WRTX_MIN_CONTROL_SIZE 25
  76.  
  77.  
  78. #define CROSSHAIR_NONE 0
  79. #define CROSSHAIR_GRAPHAREA 1
  80. #define CROSSHAIR_PLOTAREA 2
  81. #define CROSSHAIR_SMALL 3
  82.  
  83. #define DATACURSOR_DISABLED 0
  84. #define DATACURSOR_LEFTBUTTON 1
  85. #define DATACURSOR_RIGHTBUTTON 2
  86.  
  87. #define GRIDLINE_UPDATE_TIMER 0
  88. #define GRIDLINE_UPDATE_EVERY 1
  89. #define GRIDLINE_UPDATE_NEVER 2
  90.  
  91. #define ALARMLINE_UPDATE_TIMER 0
  92. #define ALARMLINE_UPDATE_EVERY 1
  93. #define ALARMLINE_UPDATE_NEVER 2
  94.  
  95.   
  96.  
  97. #define RGB_BLACK        0x000000                      
  98. #define RGB_BLUE         0x800000   //RGB (  0,0,128),                       
  99. #define RGB_GREEN        0x008000   //RGB (  0,128,  0),                       
  100. #define RGB_CYAN         0x808000   //RGB (  0,128,128),                        
  101. #define RGB_RED          0x000080   //RGB (128,  0,  0),                         
  102. #define RGB_MAGENTA      0x800080   //RGB (128,  0,128),                     
  103. #define RGB_BROWN        0x008080   //RGB (128,128,  0),                       
  104. #define RGB_LIGHTGRAY    0xc0c0c0   //RGB (192,192,192),                        
  105. #define RGB_GRAY         0x808080   //RGB (128,128,128),                        
  106. #define RGB_LIGHTBLUE    0xff0000   //RGB (  0,  0,255),                   
  107. #define RGB_LIGHTGREEN   0x00ff00   //RGB (  0,255,  0),                  
  108. #define RGB_LIGHTCYAN    0xffff00   //RGB (  0,255,255),                   
  109. #define RGB_LIGHTRED     0x0000ff   //RGB (255,  0,  0),                    
  110. #define RGB_LIGHTMAGENTA 0xff00ff   //RGB (255,  0,255),                
  111. #define RGB_YELLOW       0x00ffff   //RGB (255,255,  0),                      
  112. #define RGB_WHITE        0xffffff   //RGB (255,255,255),              
  113.                // for SVGA in 256 colors mode
  114. #define RGB_PALEBLUE     0xf0caa6   //RGB (166,202,240),              
  115. #define RGB_PALEGREEN    0xc0dcc0   //RGB (192,220,192),              
  116. #define RGB_MEDGRAY      0a4xa0a0   //RGB (160,160,164),              
  117. #define RGB_OFFWHITE     0xf6f6ff   //RGB (255,251,240),              
  118.  
  119. #endif